package View;

import javax.swing.*;

import java.awt.GridLayout;

import Controller.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class SistemadeBackup extends JPanel{

	JPanel SistemaBackup;
	
	public SistemadeBackup() {
		setLayout(new GridLayout(0, 1, 0, 0));
		SistemaBackup = new JPanel();
		
		SistemaBackup.setBorder(BorderFactory.createTitledBorder("SISTEMA DE BACKUP"));
		SistemaBackup.setBackground(null);
		add(SistemaBackup);
		
		
		
		JButton btnNewButton = new JButton("Backup");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				MySQLBackup b = new MySQLBackup();
				
			}
		});
		
		SistemaBackup.add(btnNewButton);
		
		
		JButton btnRestaurar = new JButton("Restaurar");
		btnRestaurar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				RestauraBackup a= new 	RestauraBackup();			
			}
		});
		
		SistemaBackup.add(btnRestaurar);

	}

}